package com.basic.business.api;

import com.basic.business.common.AjaxResult;
import com.basic.business.order.domain.TOrdersStatus;
import com.basic.business.order.service.ITOrdersStatusService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api")
public class UpdOrdersStatusApi {

    @Resource
    private ITOrdersStatusService ordersStatusService;


    @PostMapping("/updOrdersStatus")
    public AjaxResult updOrdersStatus(@RequestBody List<TOrdersStatus> statusList){

        ordersStatusService.updStatus(statusList);

        return AjaxResult.success();
    }


}
